package cn.androidservice;

import android.os.Binder;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MyBinder extends Binder {
    public String getTime() {
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        return format.format(date);
    }

    public String Reverse(String s) {
        String[] temp = s.split(" ");
        StringBuffer stringBuffer = new StringBuffer();
        for (String string : temp) {
            stringBuffer.append(new StringBuffer(string).reverse());
            stringBuffer.append(" ");
        }

        return stringBuffer.toString();
    }

}
